<app-header title="身份管理中心"></app-header>


<ion-content>
  <div class="mine">

    <div class="checkid">
      <ul>
        <li class="pool_bg w96">
          <div class="onediv" *ngIf="userInfo">
            <img [src]="userInfo.avater" alt="">
            <div>
              <p>{{userInfo.nickname}}</p>
              <span>{{userInfo.phone.substr(0,3)}}****{{userInfo.phone.substr(7)}}</span>
            </div>
          </div>
          <img *ngIf="userInfo.personalStatus == 1" src="assets/icon_mine_real.png" alt="">
          <img *ngIf="userInfo.personalStatus == 0" src="assets/icon_mine_unreal.png" alt="">
        </li>
      </ul>
    </div>
    <div class="mylistinfo pool_bg w96" *ngIf="userInfo.personalStatus == 0">
      <ul>
        <li [routerLink]="['/mine/checkid']" routerLinkActive="router-link-active" >
          <p class="t-left">实名认证</p>
          <p class="t-right">
            <span class="ci">立即认证</span>
            <ion-icon name="chevron-forward-outline"></ion-icon>
          </p>
        </li>
      </ul>
    </div>
    <div class="checkid mylistinfo pool_bg w96" *ngIf="userInfo.personalStatus == 1">
      <ul *ngIf="codeyz">
        <li>
          <span>姓名</span>
          <span class="rz-text">{{codeyz.realName}}</span>
        </li>
        <li>
          <span>证件号码</span>
          <span class="rz-text">{{codeyz.idcard.substr(0,1)}}******************{{codeyz.idcard.substr(codeyz.idcard.length-1)}}</span>
        </li>
        <li class="matop">
          <span>实名手机</span>
          <span class="rz-text">{{codeyz.phone.substr(0,3)}}****{{codeyz.phone.substr(7)}}</span>
        </li>
        <li class="matop">
          <span>银行卡号</span>
          <span class="rz-text">{{codeyz.bankCard.substr(0,1)}}*******************{{codeyz.bankCard.substr(codeyz.bankCard.length-1)}}</span>
        </li>
        <li>
          <span>持卡银行</span>
          <span class="rz-text">{{codeyz.bankName}}</span>
          <!-- <span style="text-align: right;">{{}}</span> -->
        </li>
        <li>
          <span>开户支行</span>
          <span class="rz-text">{{codeyz.bankOfDeposit}}</span>
        </li>
      </ul>
    </div>
    <div class="mylistinfo pool_bg w96" *ngIf="userInfo.personalStatus == 1">
      <ul>
        <li>
          <p class="t-left">实名认证</p>
          <p class="t-right">
            <span class="ci">已认证</span>
          </p>
        </li>
      </ul>
    </div>
  </div>
</ion-content>
